package base.Chapter00_Structures.C04_Stack;

/**
 * 双向链表
 */
public class Node {
    private final Object content;
    private Node preNode;
    private Node nextNode;

    public Node(Object content) {
        this.content = content;
    }

    public void setPreNode(Node preNode) {
        this.preNode = preNode;
    }

    public void setNextNode(Node nextNode) {
        this.nextNode = nextNode;
    }

    public Node getPreNode() {
        return preNode;
    }

    public Node getNextNode() {
        return nextNode;
    }

    public Object getContent() {
        return content;
    }
}
